#include <iostream>
#include "WebsocketClient.h"

int main(int argc, char const *argv[])
{
    auto client = std::make_shared<WebsocketClient>();

    client->set_receive_handler([](std::string data) {
        std::cout << "reveice data: " << data << std::endl;
    });

    client->open("ws://localhost:9002");

    while (!client->get_is_connect()){
    }


    getchar();
    return 0;
}
